package com.example.admindatasource;

import java.util.List;

public class Menu {
    private Long id;

    private String name;

    private Long Pid;

    private Integer option;

    private List<Menu> childMenus;

    public List<Menu> getMenus() {
        return childMenus;
    }

    public void setMenus(List<Menu> menus) {
        this.childMenus = menus;
    }

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", Pid=" + Pid +
                ", option=" + option +
                ", childMenus=" + childMenus +
                '}';
    }

    public Menu(Long id, String name, Long pid) {
        this.id = id;
        this.name = name;
        Pid = pid;
    }

    public Menu(Long id, String name, Long pid, Integer option) {
        this.id = id;
        this.name = name;
        Pid = pid;
        this.option = option;
    }

    public Integer getOption() {
        return option;
    }

    public void setOption(Integer option) {
        this.option = option;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getPid() {
        return Pid;
    }

    public void setPid(Long pid) {
        Pid = pid;
    }
}
